import axios from "axios";

export const axiosRequest = axios.create({
    baseURL: import.meta.env.VITE_BACKEND_SERVER_URL + "api",
    timeout: 30000
})

/**
 * 请求拦截器
 */
axiosRequest.interceptors.request.use(
    function (config){
        return config
    }
)


/**
 * 响应拦截器
 */
axiosRequest.interceptors.response.use(
    function (response){
        return response.data
    }
)